package com.sixmac.dao;

import com.sixmac.entity.Record;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2016/5/19 0019 上午 10:12.
 */
public interface RecordDao extends JpaRepository<Record, Integer> {

    @Query("select a from Record a where a.createTime > ?1")
    public List<Record> findListNew(Date oldDate);
}